package com.bw.zhuangao5___day002.Fragment.Books;

import android.content.Context;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.PagerSnapHelper;
import androidx.recyclerview.widget.RecyclerView;

/**
 * create by ertu
 * create on 2021/9/19
 * description
 */
public class LinearLayoutBooks extends LinearLayoutManager {

    PagerSnapHelper pagerSnapHelper;
    public LinearLayoutBooks(Context context) {
        super(context);
    }


    @Override
    public void onAttachedToWindow(RecyclerView view) {
        super.onAttachedToWindow(view);
        pagerSnapHelper=new PagerSnapHelper();
        pagerSnapHelper.attachToRecyclerView(view);
    }
}
